﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;

public partial class _Default : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CreateSqlConnection();
    }

    protected void CreateSqlConnection()
    {
        MySqlConnection myConnection = new MySqlConnection();
        myConnection.ConnectionString = "Persist Security Info=False;Username=root;Password=;database=mexico;server=localhost;Connect Timeout=30";
        myConnection.Open();

        //edo ponga un query

    }
}